package interfaceDAO;

import domain.Preference;
import domain.User;

public interface IDAOPreference {

	public Preference addPreference(User user, String alias, String address,
			double latitudeAddess, double longitudeAddess);

	public int deletePreference(User user, String alias);

	public Preference modifyPreference(User user, String alias, String address,
			double latitudeAddess, double longitudeAddess);

	/**
	 * Retrieve a preference from an alias.
	 * 
	 * @param alias
	 *            The preference alias.
	 * @return Corresponding preference or <tt>null</tt> if not found.
	 */
	public Preference getPreference(User user, String alias);
}